package CommonGui;
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.*;
import javax.swing.*;

public class BackgroundPanel extends JPanel 
{
  Image image;
  public BackgroundPanel()
  {
    try
    {
    	image = javax.imageio.ImageIO.read(new java.io.File("Tarshim.png"));

    }
    catch(Exception e){}
  }
  public void paintComponent(Graphics g)
  {
    super.paintComponent(g); 
    if(image != null) g.drawImage(image, 0,0,200,2000,this);
  }
}
